﻿using System;
using System.Collections.Generic;

namespace RabbitDownload.WebSite.Pixiv.PixivTag
{
    internal class PixivTagJson
    {
        public class Illust
        {
            /// <summary>
            /// 66949736
            /// </summary>
            public int illust_id { get; set; }

            /// <summary>
            /// 29098758
            /// </summary>
            public int illust_user_id { get; set; }

            /// <summary>
            /// 好きなの
            /// </summary>
            public string illust_title { get; set; }

            /// <summary>
            /// jpg
            /// </summary>
            public string illust_ext { get; set; }

            /// <summary>
            /// 1718
            /// </summary>
            public string illust_width { get; set; }

            /// <summary>
            /// 954
            /// </summary>
            public string illust_height { get; set; }

            /// <summary>
            /// 0
            /// </summary>
            public string illust_restrict { get; set; }

            /// <summary>
            /// 0
            /// </summary>
            public string illust_x_restrict { get; set; }

            /// <summary>
            /// 2018-01-24 22:30:08
            /// </summary>
            public DateTime illust_create_date { get; set; }

            /// <summary>
            /// 2018-01-24 22:30:08
            /// </summary>
            public DateTime illust_upload_date { get; set; }

            /// <summary>
            /// 235
            /// </summary>
            public string illust_server_id { get; set; }

            /// <summary>
            /// Illust_hash
            /// </summary>
            public string illust_hash { get; set; }

            /// <summary>
            /// 0
            /// </summary>
            public string illust_type { get; set; }

            /// <summary>
            /// Illust_sanity_level
            /// </summary>
            public int illust_sanity_level { get; set; }

            /// <summary>
            /// 0
            /// </summary>
            public string illust_book_style { get; set; }

            /// <summary>
            /// 1
            /// </summary>
            public int illust_page_count { get; set; }

            /// <summary>
            /// 0
            /// </summary>
            public string illust_tag_full_lock { get; set; }

            /// <summary>
            /// 制服
            /// </summary>
            public string illust_tag01 { get; set; }

            /// <summary>
            /// 少女
            /// </summary>
            public string illust_tag02 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag03 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag04 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag05 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag06 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag07 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag08 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag09 { get; set; }

            /// <summary>
            ///
            /// </summary>
            public string illust_tag10 { get; set; }

            /// <summary>
            /// emi2424
            /// </summary>
            public string user_account { get; set; }

            /// <summary>
            /// べりぃちぃず
            /// </summary>
            public string user_name { get; set; }

            /// <summary>
            /// https://i.pximg.net/c/128x128/img-master/img/2018/01/24/22/30/08/66949736_p0_square1200.jpg
            /// </summary>
            public string url { get; set; }

            /// <summary>
            /// Illust_series
            /// </summary>
          //  public bool illust_series { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// Illust
            /// </summary>
            public List<Illust> illust { get; set; }

            /// <summary>
            /// Showcase
            /// </summary>
            public List<string> showcase { get; set; }

            /// <summary>
            /// Popular_illust
            /// </summary>
            public List<string> popular_illust { get; set; }
        }

        public struct ImgInfo
        {
            private int Score;
            private bool IsComic;
            private String CoimcLink;
            private List<String> AllTag;

            public ImgInfo(int score, bool isComic, string coimcLink, List<string> allTag)
            {
                Score = score;
                IsComic = isComic;
                CoimcLink = coimcLink;
                AllTag = allTag;
            }

            /// <summary>
            /// 评分
            /// </summary>
            public int Score1 { get => Score; set => Score = value; }

            /// <summary>
            /// 是否是漫画
            /// </summary>
            public bool IsComic1 { get => IsComic; set => IsComic = value; }

            /// <summary>
            /// 漫画链接
            /// </summary>
            public string CoimcLink1 { get => CoimcLink; set => CoimcLink = value; }

            /// <summary>
            /// 所有tag
            /// </summary>
            public List<string> AllTag1 { get => AllTag; set => AllTag = value; }
        }
    }
}